package com.ml.utils.test.entity;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author zhaozongyi@mmears.com
 * @date 2021-06-03
 * @time 14:28
 */
@Data
@Accessors(chain = true)
public class Parent/*<T extends Model> */extends Model<Parent>{

    private Long id;
    private Long fid;

    public boolean add(){
        System.out.println("1");
        return false;
    }

    protected String pkVal() {
        return id+"P";
    }

    public String getById(){
        return this.pkVal();
    }
}
